package com.openbravo.pos.customers;

import com.openbravo.format.Formats;
import com.openbravo.pos.util.RoundUtils;
import java.util.Date;

public class CustomerInfoExt extends CustomerInfo
{
  protected String taxcustomerid;
  protected String notes;
  protected boolean visible;
  protected String card;
  protected Double maxdebt;
  protected Date curdate;
  protected Double curdebt;
  protected String firstname;
  protected String lastname;
  protected String email;
  protected String phone;
  protected String phone2;
  protected String fax;
  protected String address;
  protected String address2;
  protected String postal;
  protected String city;
  protected String region;
  protected String country;

  public CustomerInfoExt(String paramString)
  {
    super(paramString);
  }

  public String getTaxCustCategoryID()
  {
    return this.taxcustomerid;
  }

  public void setTaxCustomerID(String paramString)
  {
    this.taxcustomerid = paramString;
  }

  public String getNotes()
  {
    return this.notes;
  }

  public void setNotes(String paramString)
  {
    this.notes = paramString;
  }

  public boolean isVisible()
  {
    return this.visible;
  }

  public void setVisible(boolean paramBoolean)
  {
    this.visible = paramBoolean;
  }

  public String getCard()
  {
    return this.card;
  }

  public void setCard(String paramString)
  {
    this.card = paramString;
  }

  public Double getMaxdebt()
  {
    return this.maxdebt;
  }

  public String printMaxDebt()
  {
    return Formats.CURRENCY.formatValue(Double.valueOf(RoundUtils.getValue(getMaxdebt())));
  }

  public void setMaxdebt(Double paramDouble)
  {
    this.maxdebt = paramDouble;
  }

  public Date getCurdate()
  {
    return this.curdate;
  }

  public void setCurdate(Date paramDate)
  {
    this.curdate = paramDate;
  }

  public Double getCurdebt()
  {
    return this.curdebt;
  }

  public String printCurDebt()
  {
    return Formats.CURRENCY.formatValue(Double.valueOf(RoundUtils.getValue(getCurdebt())));
  }

  public void setCurdebt(Double paramDouble)
  {
    this.curdebt = paramDouble;
  }

  public void updateCurDebt(Double paramDouble, Date paramDate)
  {
    this.curdebt = Double.valueOf(this.curdebt == null ? paramDouble.doubleValue() : this.curdebt.doubleValue() + paramDouble.doubleValue());
    if (RoundUtils.compare(this.curdebt.doubleValue(), 0.0D) > 0)
    {
      if (this.curdate == null)
        this.curdate = paramDate;
    }
    else if (RoundUtils.compare(this.curdebt.doubleValue(), 0.0D) == 0)
    {
      this.curdebt = null;
      this.curdate = null;
    }
    else
    {
      this.curdate = null;
    }
  }

  public String getFirstname()
  {
    return this.firstname;
  }

  public void setFirstname(String paramString)
  {
    this.firstname = paramString;
  }

  public String getLastname()
  {
    return this.lastname;
  }

  public void setLastname(String paramString)
  {
    this.lastname = paramString;
  }

  public String getEmail()
  {
    return this.email;
  }

  public void setEmail(String paramString)
  {
    this.email = paramString;
  }

  public String getPhone()
  {
    return this.phone;
  }

  public void setPhone(String paramString)
  {
    this.phone = paramString;
  }

  public String getPhone2()
  {
    return this.phone2;
  }

  public void setPhone2(String paramString)
  {
    this.phone2 = paramString;
  }

  public String getFax()
  {
    return this.fax;
  }

  public void setFax(String paramString)
  {
    this.fax = paramString;
  }

  public String getAddress()
  {
    return this.address;
  }

  public void setAddress(String paramString)
  {
    this.address = paramString;
  }

  public String getAddress2()
  {
    return this.address2;
  }

  public void setAddress2(String paramString)
  {
    this.address2 = paramString;
  }

  public String getPostal()
  {
    return this.postal;
  }

  public void setPostal(String paramString)
  {
    this.postal = paramString;
  }

  public String getCity()
  {
    return this.city;
  }

  public void setCity(String paramString)
  {
    this.city = paramString;
  }

  public String getRegion()
  {
    return this.region;
  }

  public void setRegion(String paramString)
  {
    this.region = paramString;
  }

  public String getCountry()
  {
    return this.country;
  }

  public void setCountry(String paramString)
  {
    this.country = paramString;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.customers.CustomerInfoExt
 * JD-Core Version:    0.6.0
 */